//分类界面配置
export const userContentConfig = {
  table: 'user',
  title: '用户',
  top: {
    title: '用户列表',
    subTitle: '系统所有农户、用户信息管理',
  },
  tableArr: [
    {
      label: '账号',
      prop: 'account',
    },
    {
      label: '昵称',
      prop: 'nickname',
    },
    {
      label: '头像',
      prop: 'avatar_src',
      type: 'image',
    },
    {
      label: '角色',
      prop: 'role',
      type: 'status-multie',
      itemProps: {
        statusMap: {
          1: '农户',
          2: '用户'
        }
      },
    },
    {
      label: '状态',
      prop: 'status',
      type: 'status',
      itemProps: {
        success: '正常',
        failed: '禁用'
      },
    },
    {
      label: '操作',
      align: 'center',
      type: 'action',
      itemProps: {
        actions: ['status', 'delete'],
      },
      itemConfig: {
        statusProp: 'status',
        success: '启用',
        failed: '禁用'
      },
      width: '180'
    }
  ]
}
